<!DOCTYPE html>
<html>
<head>
<base href="<?php echo XXF_HTTP?>" />
<meta charset="utf-8">
<title>评教系统</title>
<style type="text/css">
*{margin:0;padding:0;}
.bu{
	background-color:#eee;
}
.bu:hover{
	background-color:red;
}
</style>
<script src="js/jquery.js"></script>
<script src="js/jquery.xxfset.js"></script>
<script type="text/javascript">
function foo(cname){
	var cy={
			"2015_1":1			,"2015_2":2			,"2015_3":3			,"2015_4":4			,"2015_5":5			,"2015_6":6
			,"2015_7":7			,"2015_8":8			,"2015_9":9			,"2015_10":10			,"2015_11":11			,"2015_12":12
			,"2015_13":13			,"2015_14":14			,"2015_15":15			,"2015_16":16			,"2017_1":17			,"2017_2":18
			,"2017_3":19			,"2017_4":20			,"2017_5":21			,"2017_6":22			,"2017_7":23			,"2017_8":24
	};
	$.xconfirm("你选择的是"+cname.split("_")[1]+"级"+cname.split("_")[2]+"班，正确请点击[确定]继续！<br><br><br>",function(data){
		if(data){
			location.href='sjpj_exam/cid/'+cy[cname.split("c_")[1]];
		}
	});
}
</script>
</head>
<body>
<div style="width: 700px;margin:50px auto;">
	<h1 style="text-align: center;"><?php // echo xdb::getInstance()->getvar("select sname from stu where id=".$sid)?> <small>请选择你所在的班级</small></h1>
	<div>
		<h2>2015级</h2>
		<?php 
		for($i=1;$i<=16;$i++){
	       echo '<div onclick="foo(\'c_2015_'.$i.'\')"  class="bu" style="padding-top:10px;width:50px;height:30px;float:left;margin:10px;text-align:center;font-weight:bold;cursor:pointer;">'.$i.'班</div>';
		}?>
	</div>
	<div style="clear: both;"></div>
	<br>
	<hr>
	<br>
	<div style=" clear:both;">
		<h2>2017级</h2>
		<?php 
		for($i=1;$i<=8;$i++){
	       echo '<div onclick="foo(\'c_2017_'.$i.'\')"   class="bu" style="padding-top:10px;width:50px;height:30px;float:left;margin:10px;text-align:center;font-weight:bold;cursor:pointer;">'.$i.'班</div>';
		}?>
	</div>
</div>
</body>
</html>